﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/Main.Master"  CodeBehind="ManagerSales.aspx.cs" Inherits="Agile_E.ManagerSales" %>

<asp:Content ID="sales" ContentPlaceHolderID="main1" runat="server">
<h1>Sales</h1>

<h2>Pending Sales</h2>
<asp:GridView ID="PendingSales" runat="server" AutoGenerateColumns="false">
    <Columns>
        <asp:BoundField HeaderText="Seller" DataField="Salesperson" />
        <asp:BoundField HeaderText="Customer" DataField="Customer" />
        <asp:BoundField HeaderText="Car" DataField="Car" />
        <asp:BoundField HeaderText="Agreed Price" DataField="Agreed Price" />
        <asp:BoundField HeaderText="Acceptance State" DataField="Acceptance State" />
        <asp:HyperLinkField   DataNavigateUrlFields="Vin" DataNavigateUrlFormatString="AcceptSales.aspx?vin={0}"
                 Text="Approve" NavigateUrl="~/Manager/AcceptSales.aspx" />
    </Columns>
</asp:GridView>

<h2>Customer Information</h2>
<asp:GridView ID="CustomerInformation" runat="server" AutoGenerateColumns="false">
    <Columns>
        <asp:BoundField HeaderText="Customer" DataField="Customer" />
        <asp:BoundField HeaderText="Car Interest" DataField="Car" />
        <asp:HyperLinkField   DataNavigateUrlFields="Vin" DataNavigateUrlFormatString="EditCustomer.aspx?vin={0}"
                 Text="Edit" NavigateUrl="~/Manager/EditCustomer.aspx" />
    </Columns>
</asp:GridView>
<asp:Button ID="NewCustomer" runat="server" Text="Add New Customer" />

<h2>Recent Sales</h2>
<asp:GridView ID="RecentSales" runat="server" AutoGenerateColumns="false">
    <Columns>
        <asp:BoundField HeaderText="Seller" DataField="Salesperson" />
        <asp:BoundField HeaderText="Customer" DataField="Customer" />
        <asp:BoundField HeaderText="Car" DataField="Car" />
        <asp:BoundField HeaderText="Agreed Price" DataField="Agreed Price" />
        <asp:BoundField HeaderText="Commission Gained" DataField="Commission" />
    </Columns>
</asp:GridView>
    
</asp:Content>
